/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2023-12-20 13:24:31
 * @LastEditTime: 2024-06-03 10:51:04
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \HelloWorldd:\Developer\WGJ\VSCode_WorkSpace\Cpp\c-learning\code\arr\simple1.c
 * @Description:
 */
#include <stdio.h>
#include <stdlib.h>

#define M 3

int main()
{
    int i;
    // int arr[M] = {1, 2, 3};
    int arr[]={1,2,3,4,5,6};

    printf("%d\n", sizeof(arr));
    printf("%d\n", sizeof(arr)/sizeof(arr[0]));

    // arr = {4, 5, 6};(F)
    /*
        for (i = 0; i < M; i++)
        {
            scanf("%d", &arr[i]);
        }
     */

    arr[3] = 10;
    printf("a[3] = %d\n", arr[3]);

    for (i = 0; i < M; i++)
    {
        printf("%p --> %d\n", &arr[i], arr[i]);
    }

    exit(0);
}